﻿using System;
using System.Collections.Generic;
using System.ServiceModel;
using System.Runtime.Serialization;

namespace StockTrader.BusinessService.DataContract
{
    [DataContract()]
    public class OrderMatchedData
    {
        [DataMember]
        public int OrderId { set; get; }
        [DataMember]
        public DateTime TimeStamp { set; get; }
        [DataMember]
        public int Quantity { set; get; }
        [DataMember]
        public decimal Price { set; get; }
        [DataMember]
        public string CounterAccount { set; get; }

        public OrderMatchedData() { }
        public OrderMatchedData(int orderid, DateTime timestamp, int qtty, decimal price, string account)
        {
            OrderId = orderid;
            TimeStamp = timestamp;
            Quantity = qtty;
            Price = price;
            CounterAccount = account;
        }
    }
}
